package aop;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;


@Component
@Aspect
public class MyAspect {

	@Pointcut("execution(* ioc.ServiceA.*(..))")
	private void pointCut(){}


	@After("pointCut()")
    public void myAfter(JoinPoint joinPoint){
		System.out.println("最终通知：模拟方法结束后释放资源");
	}


}